package cn.edu.scnu.semart.vo.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddressUpdateDTO {

    @NotNull(message = "地址ID不能为空")
    private Integer addressId;   // 前端必须传，用于定位要改哪条记录

    @NotBlank private String recipient;
    @NotBlank private String phone;
    @NotBlank private String province;
    @NotBlank private String city;
    @NotBlank private String district;
    @NotBlank private String street;
    @NotBlank private String detail;
}